package com.swpu.demo.mapper;

import com.swpu.demo.entity.PersonalData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PersonalDataMapper{
    PersonalData selectOneUser(@Param("username") String username);
    List<PersonalData> listAllUsers();
    int addOneUser(PersonalData user);
    int updateOneUser(PersonalData user);
    int updateUserPass(String passWord);
    int deleteOneUser(@Param("id") int id);

}
